package com.rt.tmpt.dto;

import java.io.Serializable;

public class ConstantDto implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 默认数据源
	 */
	public static final String defaultDataSource = "dsA";
	/**
	 * 业务数据源
	 */
	public static final String bizDataSource = "dsB";

	/**
	 * 交易类型 1 充值 2 消费 3 撤销 4 退货 5 提现 6 退款 7 转帐（转出） 8 转帐（转入） 9转账银行 insert into
	 * BaseTradeTypeInfo(id,name,type) values(1,'充值',1) insert into
	 * BaseTradeTypeInfo(id,name,type) values(2,'消费',1) insert into
	 * BaseTradeTypeInfo(id,name,type) values(3,'撤销',1) insert into
	 * BaseTradeTypeInfo(id,name,type) values(4,'退货',1) insert into
	 * BaseTradeTypeInfo(id,name,type) values(5,'提现',1) insert into
	 * BaseTradeTypeInfo(id,name,type) values(6,'退款',1) insert into
	 * BaseTradeTypeInfo(id,name,type) values(7,'转帐（转出）',1) insert into
	 * BaseTradeTypeInfo(id,name,type) values(8,'转帐（转入）',1) insert into
	 * BaseTradeTypeInfo(id,name,type) values(100,'手机充值',2)
	 */
	public static final int TradeTypeId_Supply = 1;
	public static final int TradeTypeId_Consume = 2;
	public static final int TradeTypeId_Cancel = 3;
	public static final int TradeTypeId_SalesReturn = 4;
	public static final int TradeTypeId_ApplyCash = 5;
	public static final int TradeTypeId_MoneyReturn = 6;
	public static final int TradeTypeId_TransferOut = 7;
	public static final int TradeTypeId_TransferIn = 8;
	public static final int TradeTypeId_TransferBank = 9;

	public static final int AccountType_Customer=1;
	public static final int AccountType_Merchant=2;
	public static final int AccountType_Bank=3;
	
	/**
	 * 转账类型： 虚拟账户到虚拟账户1、 虚拟账户到预卡账户2、 虚拟账户到银行3、 预卡账户到预卡账户 4、 预卡账户到KHC卡 5、
	 * KHC卡到预卡账户 6、 银行到虚拟账户 7、 银行到预卡账户 8、 银行到KHC卡 9、 银行到银行 10
	 */
	public static final int TransferAccountsType_VirtualAccount2VirtualAccount = 1;
	public static final int TransferAccountsType_VirtualAccount2PrepayAccount = 2;
	public static final int TransferAccountsType_VirtualAccount2Bank = 3;
	public static final int TransferAccountsType_PrepayAccount2PrepayAccount = 4;
	public static final int TransferAccountsType_PrepayAccount2KHC = 5;
	public static final int TransferAccountsType_KHC2PrepayAccount = 6;
	public static final int TransferAccountsType_Bank2VirtualAccount = 7;
	public static final int TransferAccountsType_Bank2PrepayAccount = 8;
	public static final int TransferAccountsType_Bank2KHC = 9;
	public static final int TransferAccountsType_Bank2Bank = 10;

	/**
	 * 支付方式： 0-其它（默认）、 100-网银、 --可能分信用卡和借记卡，所以从100-199都是网银的，这样方便管理 200-快捷支付、
	 * 300-虚拟帐户、 301-预卡帐户、 400-消费卡、 401-KHC卡   、402-KHC卡批量//60-终端APP（暂无）、 //70-微信支付（暂无）
	 */
	public static final int PayTypeId_NetBank = 100;
	public static final int PayTypeId_QuickPay = 200;
	public static final int PayTypeId_BalanceCash = 300;
	public static final int PayTypeId_Balance3thCard = 301;
	public static final int PayTypeId_ConsumeCard = 400;
	public static final int PayTypeId_ConsumeKHCCard = 401;
	public static final int PayTypeId_ConsumeKHCCardBatch = 402;
	

	// 自营产品编号
	public static final int MYPRODUCT_PHONE = 1; // 手机固话宽带
	public static final int MYPRODUCT_GIFT = 2; // 礼品卡
	public static final int MYPRODUCT_ALIPAY = 3; // 支付宝
	public static final int MYPRODUCT_QB = 4; // Q币
	public static final int MYPRODUCT_GAMECARD = 5; // 游戏点卡
	public static final int MYPRODUCT_PUB = 6; // 上海公共事业费
	public static final int MYPRODUCT_TMALL = 7; // 天猫点券
	public static final int MYPRODUCT_OIL = 8; // 油卡
	public static final int MYPRODUCT_ELE = 9; // 江苏电费
	public static final int MyPRODUCT_RECHARGE = 10; // 充值
	public static final int MYPRODUCT_TRANSFER = 11; // 转账

	// 支付状态
	public static final int PayStatus_Success = 0;
	public static final int PayStatus_fail = 1;
	// 订单状态
	//用于在付款前对产品进行的验证，如果不成功则使用该状态，成功则改为待支付
	public static final int OrderStatus_verifyFail=-7;//产品预验证失败
	public static final int OrderStatus_Check = -6; //待审核
	public static final int OrderStatus_SalesReturn = -5;
	//退回已付的款项，用于对订单做“取消”操作或自动退款，此状态仅用于orderPay的orderStatus
	public static final int OrderStatus_DrawBack=-4;
	public static final int OrderStatus_BusinessFail = -3;
	public static final int OrderStatus_PayFail = -2;
	public static final int OrderStatus_Cancel = -1;
	public static final int OrderStatus_WaitPay = 0;
	public static final int OrderStatus_WaitConfim = 1;
	public static final int OrderStatus_Paid = 2;
	
	
	
	// 订单补充状态
	public static final String OrderSupplementStatus_None = "0"; //失败
	public static final String OrderSupplementStatus_OptionSucess = "1"; //操作成功
	public static final String OrderSupplementStatus_Wait = "3";   //补充中
	public static final String OrderSupplementStatus_Sucess = "2";  //补充成功
	
	
	// 切换商户状态
	public static final String MerchantChange_None = "0"; //失败
	public static final String MerchantChange_OptionSucess = "1"; //操作成功
	
	
	/**订单退款、取消申请*/
	//  状态（1申请，2复核通过，3复核不通过，4已退款或取消、-1退款失败，5审核通过，6审核不通过)
	public static final int OrderReturn_Status_Apply=1;
	public static final int OrderReturn_Status_Pass=2;
	public static final int OrderReturn_Status_Reject=3;
	public static final int OrderReturn_Status_Success=4;
	public static final int OrderReturn_Status_Fail=-1;	
	public static final int OrderReturn_Audit_Status_Pass=5;
	public static final int OrderReturn_Audit_Status_Reject=6;
	
	// 操作类型( 1 取消   ，2  退货)
	public static final int OrderReturn_OperType_Cancle=1;
	public static final int OrderReturn_OperType_Return=2;
	//申请人类型( 1-内部操作人员  2-商户  3-个人用户)
	public static final int OrderReturn_CreateManType_Insider=1;
	public static final int OrderReturn_CreateManType_Merchant=2;
	public static final int OrderReturn_CreateManType_Personal=3;
	//复核人类型( 1-内部操作人员  2-商户）
	public static final int OrderReturn_CheckManType_Insider=1;
	public static final int OrderReturn_CheckManType_Merchant=2;
	
	
	// 男 女
	public static final int Sex_Male = 1;
	public static final int Sex_Female = 0;
	// 有效 无效
	public static final int Enabled = 1;
	public static final int Disabled = 0;// 无效
	public static final int DisabledForEver = -1; // 注销了、

	public static final int Show = 1;
	public static final int NoShow = -1;
	/**
	 * 网上用户登录后，用户信息存放在session中
	 */
	public static final String CustomerDtoSession = "customerDtoSession";
	/**
	 * 后台用户登录后，用户信息存放在session中
	 */
	public static final String MagSystemDtoSession = "magSystemDtoSession";

}
